/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package trirparser;

import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import com.hp.hpl.jena.rdf.model.*;
import java.io.PrintWriter;
import trirparser.ontologija.VremeOntologija;

/**
 *
 * @author Irena
 */
public class ShraniRDF {
            
    public ArrayList<VremeOntologija> shraniPodatkeOMestihVRDF(ArrayList<Podatek> podatki) {
        VremeOntologija vr;
        ArrayList<VremeOntologija> modeli = new ArrayList<VremeOntologija
                
                >();
        
        for(Podatek p : podatki){
            vr = new VremeOntologija(p.getMesto() + p.getDatum());
            vr.setMesto(p.getMesto());
            vr.setDatum(p.getDatum());
            vr.setStanje(p.getStanje());
            vr.setTemperatura(p.getTemperatura());
            vr.setVlaznost(p.getVlaznost());
            vr.setSlika(p.getSlika());
            vr.setSmerVeter(p.getSmerVeter());
            vr.setHitrostVeter(p.getHitrostVeter());
            //getModel().write(new PrintWriter(System.out));
            modeli.add(vr);
        }
        return modeli;
    }
    
}
    
    
    

